package com.sdk4.jinritemai.model.bean;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class DoudianProductCateProperty {


    /**
     * property_id : 14133
     * property_name : 款式
     * required : false
     * options : [{"name":"其他","value":"其他"},{"name":"旋转式","value":"旋转式"},{"name":"侧滑盖","value":"侧滑盖"},{"name":"翻盖","value":"翻盖"},{"name":"滑盖","value":"滑盖"},{"name":"直板","value":"直板"},{"name":"不详","value":"不详"}]
     */

    @JSONField(name = "property_id")
    private int propertyId;
    @JSONField(name = "property_name")
    private String propertyName;
    @JSONField(name = "required")
    private boolean required;
    @JSONField(name = "options")
    private List<OptionsBean> options;
    @JSONField(name = "type")
    private String type;

    public int getPropertyId() {
        return propertyId;
    }

    public void setPropertyId(int propertyId) {
        this.propertyId = propertyId;
    }

    public String getPropertyName() {
        return propertyName;
    }

    public void setPropertyName(String propertyName) {
        this.propertyName = propertyName;
    }

    public boolean isRequired() {
        return required;
    }

    public void setRequired(boolean required) {
        this.required = required;
    }

    public List<OptionsBean> getOptions() {
        return options;
    }

    public void setOptions(List<OptionsBean> options) {
        this.options = options;
    }

    public static class OptionsBean {
        /**
         * name : 其他
         * value : 其他
         */

        @JSONField(name = "name")
        private String name;
        @JSONField(name = "value")
        private String value;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
    }
}
